import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.next();
        boolean flag=checkStr(str);
        if(!flag){
            System.out.println("不符合规则");
        }
        StringBuilder sb=new StringBuilder();
        for (int i = 0; i <str.length(); i++) {
            int num=(int)str.charAt(i);
            num=num-48;
            String s=changeLuoMa1(num);
            sb.append(s);
        }
        String str1=sb.toString();
        System.out.println(str1);

    }
    public static boolean checkStr(String str){
        if(str.length()>9)
        {
            return false;
        }
        for (int i = 0; i <str.length(); i++) {
            char c=str.charAt(i);
            if(c<'0'||c>'9'){
                return false;
            }

        }
        return true;
    }
    public static String changeLuoMa(int number)
    {
        String[] arr={"Ⅰ","Ⅱ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅸ"};
        return arr[number];
    }
    public static String changeLuoMa1(int number)
    {

        String str=switch(number){
            case 0->"";
            case 1->"Ⅰ";
            case 2->"Ⅱ";
            case 3->"Ⅲ";
            case 4->"Ⅳ";
            case 5->"Ⅴ";
            case 6->"Ⅵ";
            case 7->"Ⅶ";
            case 8->"Ⅷ";
            case 9->"Ⅸ";
            default->"";
    };
        return str;
    }
}
